<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
  		<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
		<title>点评天下</title>
		<%= javascript_include_tag :defaults %>
		<%= stylesheet_link_tag "yui/fonts/fonts-min.css" %>
		<%= stylesheet_link_tag "yui/menu/assets/skins/sam/menu.css" %>
		<%= javascript_include_tag "yui/yahoo-dom-event/yahoo-dom-event.js" %>
  		<%= javascript_include_tag "yui/container/container_core-min.js" %>
		<%= javascript_include_tag "yui/menu/menu-min.js" %>
		<%= javascript_include_tag "yui/menu/menu-min.js" %>
		<%= javascript_include_tag "flashobj.js" %>
		<%= stylesheet_link_tag "main.css"%>
	<style>
	</style>
	<script language="javascript">

	</script>
	</head>
	
	<body id="mainBody">
<div class ="width960">
<div id="xtop">
	<div class="logo"></div>
	<div class="midTop">
	<h1>城市切换<a href="#" title="苏州">[苏州]</a></h1>
	</div>
	<div class="rightTop">
	<h1>
	  <p><%=link_to "登录",{:controller => 'personal_management', :action => 'login'}%>|
	  <%=link_to "免费注册", {:controller=>'personal_management',:action=>'register'}%>
	  <%if !session[:user_id].nil?%>|<%=link_to "个人设置", {:controller=>'personal_management',:action=>'edit',:id=>session[:user_id]}%><%end%></p>
	  <a href="#" title="点餐">点餐</a>
	  <%if !session[:user_id].nil? &&session[:user_name].upcase=="ADMIN" %><%=link_to "<span>后台(YUI)</span>",{:controller=>"management_yui",:action=>"main",:id=>session[:user_id]}%><%end%>
	  <%=link_to "添加点评",{:controller => 'review', :action => 'goreview'},:target=>"mainFrame"%>
	   <%if !session[:user_id].nil?%><%=link_to "添加商户",{:controller => 'shop', :action => 'new'}%><%end%>
	  </h1>
	</div>
</div>
<div >
	<p style="color: green"><%= flash[:noticeSS] %></p>
	<div id="menu">
  <div id="title">
    <ul>
		<%if !session[:user_id].nil? &&session[:user_name].upcase=="ADMIN" %><li id="tag6"><%=link_to "<span>后台管理</span>",{:controller=>"management",:action=>"main",:id=>session[:user_id]}%></li> <%end%>
		<li id="tag5"><a href="#" onclick="switchTag('tag5','content5');this.blur();"><span>生活</span></a></li>
		<li id="tag4"><a href="#" onclick="switchTag('tag4','content4');this.blur();"><span>娱乐</span></a></li>
		<li id="tag3"><a href="#" onclick="switchTag('tag3','content3');this.blur();"><span>购物 </span></a></li>
		<li id="tag2"><a href="#" onclick="switchTag('tag2','content2');this.blur();"><span>美食</span></a></li>
		<li id="tag1"><a href="#" onclick="switchTag('tag1','content1');this.blur();" class="selectli1"><span class="selectspan1">首页</span></a></li>
    </ul>
  </div>
  <div id="content" class="content1">
    <div id="content1">
      <select class="whith150" name="美食">
        <option>美食1</option>
        <option>美食2</option>
        <option>美3</option>
        <option>美食4</option>
        <option>美食5</option>
      </select>
      <select class="whith150" name="所有菜系">
        <option>所有菜系</option>
      </select>
      <select class="whith150" name="所有地区">
        <option>所有地区</option>
      </select>
     <button>搜索</button>
    </div>
    <div id="content2" class="hidecontent"></div>
    <div id="content3" class="hidecontent"></div>
    <div id="content4" class="hidecontent"></div>
    <div id="content5" class="hidecontent"></div>
  </div>
</div>
<div>
	<%= yield%></div>
</div>
<div id="foot">
<div class="box"><h3><a href="#">关于我们</a>   |  <a href="#">人才招聘</a>   | <a href="#"> 站务论坛</a>   | <a href="#"> 链接及合作</a>   |  <a href="#"> 联系我们</a>   |  <a href="#">网站地图</a></h3></div>
<div class="bg">苏州新宇软件版权所有</div>
</div>
</div>
	</body>
</html>
